package com.funcourse.demo.model.repo;

import com.funcourse.demo.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface UserRepo extends MongoRepository<User,String> {

  User findByWebOpenId(String openId);

  User findByWeletOpenId(String openId);

  User findByWeletOpenIds(String openId);

  User findByUnionId(String unionId);

  User findByToken(String token);

  User findByMobile(String mobile);

  User findByCardNumberAndOrganizationId(String cardNumber,String organizationId);

}
